const { mysql } = require('../qcloud')
const wxApi = require('../services/wxApi.js')

async function updateSession(ctx) {
  const body = ctx.body
  const res = await wxApi.getSession(body.code)
  ctx.state.data = res
}

module.exports = {
  updateSession
}